package com.sxt.dashboard;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class, DataSourceAutoConfiguration.class})
@EnableHystrixDashboard//开启dashboard检测功能,提供者服务端需要有监控依赖,actuator
public class ConsumerDashboard_9001 {
    /**
     * 访问路径,http://localhost:9001/hystrix
     * 必须在提供者的controller方法上加入 @HystrixCommand注解才能监控该方法的情况
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(ConsumerDashboard_9001.class,args);
    }
}
